import request from '@/utils/request'

// 查询设备列表
export function listEquipmentMessage(data) {
  return request({
    url: '/equipmentMessage/listEquipment',
    method: 'post',
    data: data
  })
}

// 查询设备详细
export function getEquipmentMessage(id) {
  return request({
    url: '/equipmentMessage/getEquipmentById?id=' + id,
    method: 'get'
  })
}

// 新增设备
export function addEquipmentMessage(data) {
  return request({
    url: '/equipmentMessage/addEquipment',
    method: 'post',
    data: data
  })
}

// 修改设备
export function updateEquipmentMessage(data) {
  return request({
    url: '/equipmentMessage/editEquipment',
    method: 'post',
    data: data
  })
}

// 修改设备
export function setGroupByIds(data) {
  return request({
    url: '/equipmentMessage/setGroupByIds',
    method: 'post',
    data: data
  })
}

// 删除设备
export function delEquipmentMessage(id) {
  return request({
    url: '/equipmentMessage/delEquipment?ids=' + id,
    method: 'delete'
  })
}

// dtu下拉
export function dtuSelectList(data) {
  return request({
    url: '/dtuusr/listDtuUsr',
    method: 'post',
    data,
  })
}
